import request from './request.js'
// 查询供需信息热点数据
export const getHotData = () => {
    return request({
		url: 'SupplyDemandInfo/SupplyDemandInfo/getRankInfo', 
		method: 'get'
	})
}
// 会员风采
export const getListHome = () => {
    return request({
		url: 'enterprise/enterprise/listHome', 
		method: 'get'
	})
}

// 行业资讯
export const getRankInfo = (data) => {
    return request({
		url: 'IndustryNews/IndustryNews/getRankInfo', 
		method: 'get',
		data
	})
}
// 行业资讯
export const getDict = (params) => {
    return request({
		url: 'system/dict/data/type/'+params, 
		method: 'get'
	})
}
// 获取协会信息
export const getAssociationInfo = (data) => {
    return request({
		url: 'associationSet/association/head', 
		method: 'get',
		data
	})
}
// 获取供需信息详细信息
export const getSupplyInfo = (data) => {
    return request({
		url: 'SupplyDemandInfo/SupplyDemandInfo/'+data.id, 
		method: 'get',
	})
}
// 获取行业资讯详细信息
export const getIndustryInfo = (data) => {
    return request({
		url: 'IndustryNews/IndustryNews/'+data.id, 
		method: 'get',
	})
}
// 查询供需信息列表
export const getSupplyList = (data) => {
    return request({
		url: 'SupplyDemandInfo/SupplyDemandInfo/list', 
		method: 'get',
		data
	})
}
// 查询黑名单列表
export const getBlackList = (data) => {
    return request({
		url: 'enterprise/blacklist/list', 
		method: 'get',
		data
	})
}
// 查询黑名单详情
export const getBlackInfo = (data) => {
    return request({
		url: 'enterprise/blacklist/'+data.id, 
		method: 'get',
	})
}
// 黑名单条数
export const getBlackCount = () => {
    return request({
		url: 'enterprise/blacklist/count',  
		method: 'put'
	})
}
// 查询协会通知公告列表
export const getNoticeList = (data) => {
    return request({
		url: 'association/notice/list', 
		method: 'get',
		data
	})
}
// 获取协会通知公告详细信息
export const getNoticeInfo = (data) => {
    return request({
		url: 'association/notice/'+data.id, 
		method: 'get',
	})
}

// 小程序获取企业员工详细信息
export const getEmployeeInfo = () => {
    return request({
		url: 'employee/EnterpriseEmployee/app',
		method: 'get',
	})
}
// 修改企业员工
export const updateEmployee = (data) => {
    return request({
		url: 'employee/EnterpriseEmployee', 
		method: 'put',
		data
	})
}
// 新增企业管理
export const addEnterprise = (data) => {
    return request({
		url: 'enterprise/enterprise', 
		method: 'post',
		data
	})
}
// app修改企业
export const editEnterprise = (data) => {
    return request({
		url: 'enterprise/enterprise', 
		method: 'put',
		data
	})
}
// app获取企业详细信息
export const getEnterpriseInfo = () => {
    return request({
		url: 'enterprise/enterprise/app/info',
		method: 'get',
	})
}
// 获取企业详细信息
export const getEnterpriseInfoById = (data) => {
    return request({
		url: 'enterprise/enterprise/'+data.id, 
		method: 'get',
	})
}
// app修改企业风采和简介
export const updateEnterprise = (data) => {
    return request({
		url: 'enterprise/enterprise/enterInformation', 
		method: 'post',
		data
	})
}
// 小程序新增黑名单
export const addBlack = (data) => {
    return request({
		url: 'enterprise/blacklist/app', 
		method: 'post',
		data
	})
}
// 小程序查询企业员工列表
export const getEmployeeList = (data) => {
    return request({
		url: 'employee/EnterpriseEmployee/appList', 
		method: 'get',
		data
	})
} 
// 获取入会码
export const getQrCode = () => {
    return request({
		url: 'code/enterprise/code',
		method: 'get',
	})
}
// 剔除企业员工
export const deleteEmployee = (data) => {
    return request({
		url: 'employee/EnterpriseEmployee/del/'+data.id, 
		method: 'post',
		data
	})
}
// 新增反馈
export const addFeedback = (data) => {
    return request({
		url: 'feedback/feedback', 
		method: 'post',
		data
	})
}
// 查询反馈列表
export const getFeedbackList = (data) => {
    return request({
		url: 'feedback/feedback/list', 
		method: 'get',
		data
	})
}
// 获取反馈详细信息
export const getFeedbackInfo = (data) => {
    return request({
		url: 'feedback/feedback/'+data.id, 
		method: 'get',
	})
}
// 修改反馈
export const updateFeedback = (data) => {
    return request({
		url: 'feedback/feedback', 
		method: 'put',
		data
	})
}
// 删除反馈
export const deleteFeedback = (data) => {
    return request({
		url: 'feedback/feedback/'+data.id, 
		method: 'delete',
	})
}
// 查询案例列表
export const getCaseList = (data) => {
    return request({
		url: 'case/case/list', 
		method: 'get',
		data
	})
}
// 查询供需信息条数
export const getSupplyCount = (data) => {
    return request({
		url: 'SupplyDemandInfo/SupplyDemandInfo/getRankInfo/'+data.id,  
		method: 'get'
	})
}
// 获取协会详细信息
export const getAssociationInfoById = () => {
    return request({
		url: 'associationSet/association/1', 
		method: 'get',
	})
}